import "./style/index.less";
import Food from "./modules/food";
import ScorePanel from "./modules/scorePanel";
import Snake from "./modules/snake";
import GameControl from "./modules/gameControl";

// 食物类的测试代码
// const food = new Food();
// console.log(food.getX());
// console.log(food.getY());
// food.change();
// console.log(food.getX());
// console.log(food.getY());

// 测试分数统计类
// var scorePanel = new ScorePanel();
// for (let i = 0; i < 9; i++) {
//   scorePanel.addScore();
// }
// scorePanel.addScore();
// scorePanel.addScore();
// scorePanel.addScore();
// scorePanel.levelUp();

// 测试蛇类
// var snake = new Snake()
// snake.setX(100);

var gameControl = new GameControl();
setInterval(()=>{
    console.log(gameControl.direction);
},1000)
